<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        {css file="__ROOT__/static/jqueryui/css/smoothness/jquery-ui-1.10.0.custom.css"/}
        {css file="__PUBLIC__/css/edit.css"/}
        {jquery/}
        {jsconst/}
        {js file="__ROOT__/static/jqueryui/js/jquery-ui-1.10.0.custom.min.js"/}
        {js file="__PUBLIC__/js/arcedit.js"/}

        <script>
            $(function() {
                $( "#tabs" ).tabs();
            });
        </script>

        <style type="text/css">
            .desc{color: red;}
        </style>
    </head>
    <body>
        <form action="{|U('save')}" method="post">
            <input type="hidden" name="aid" value="{$field.aid}"/>
            <input type="hidden" name="thu" id="a" value="{$field.thumbimg}"/>
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">编辑文章</a></li>
                </ul>
                <div id="tabs-1">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                      <tbody>
                      <tr>
                        <td width="100" height="26" class="bline"><font color="">文章标题：</font></td>
                        <td class="bline"><input type="text" class="iptxt" size="30" name="title" value="{$field.title}"><span class="desc"></span></td>
                      </tr>
                      <tr>
                          <td width="100" height="26" class="bline"><font color="">文章属性：</font></td>
                          <td class="bline">
                              {list from="$flag" name="$n"}
                              {$n.flgname}&nbsp;<input type="checkbox" class="iptxt ccc" size="30" name="flag[]" value="{$n.fid}" {if value="$n.close==1"}checked="checked"{/if}>
                              {/list}
                          </td>
                      </tr>
                      <tr>
                          <td width="100" height="26" class="bline"><font color="">所属栏目：</font></td>
                          <td class="bline">
                              <select name="cid">
                                  <option value="选择栏目">--请选择栏目--</option>
                                  {list from="$category" name="$n"}
                                  <option value="{$n.cid}" {if value="$n.cid==$field.cid"}selected="selected"{/if}>{$n.html}{$n.catname}</option>
                                  {/list}
                              </select>
                          </td>
                      </tr>

                      <tr>
                        <td height="26" class="bline"><font color="">　关键字：</font></td>
                        <td class="bline"><input type="text" class="iptxt" size="30" name="keywords" value="{$field.keywords}"><span class="desc"></span></td>
                      </tr>

                      <tr>
                        <td height="26" class="bline"><font color="">　缩略图：</font></td>
                        <td class="bline b">
                          {upload name="thumbimg" data="$thumbimg"/}
                          <span class="desc"></span>
                        </td>
                      </tr>

                      <tr>
                        <td height="26" class="bline"><font color="">文章描述：</font></td>
                        <td class="bline"><textarea name="description" class="w300 h100">{$field.description}</textarea><span class="desc"></span></td>
                      </tr>

                      <tr>
                        <td height="26" class="bline"><font color="">文章内容：</font></td>
                        <td class="bline">{keditor width="700" name="content" content="$field.content"/}<span class="desc"></span></td>
                      </tr>

                      <tr>
                        <td height="26" class="bline"><font color="">点击次数：</font></td>
                        <td class="bline"><input type="text" class="iptxt" size="30" width="50" name="click" value="{$field.click}"><span class="desc"></span></td>
                      </tr>
                      
                      </tbody>
                    </table>
                </div>
                
                <div style="padding-left:10px;">
                    <table width="100%" cellspacing="0" cellpadding="0" border="0">
                      <tbody>
                        <tr>
                           <td align="left" colspan="2" style="padding-left:15px;">
                               <input class="menu_submit" type="submit" value="确认修改">
                           </td>
                           
                        </tr>
                      </tbody>
                    </table>
                </div>
            </div>

        </form>
    </body>
</html>
